import find from './find'
import matcher from '../object/matcher'

export default function findWhere(obj, attrs) {
  return find(obj, matcher(attrs))
}